﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager.master" AutoEventWireup="true" CodeFile="QuanLySanPham.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FullBody" Runat="Server">


<asp:Panel ID="panelBasicSearch" Visible="false" runat="server" DefaultButton="btSearch">
    <div class="Windows">
        <span id="capture">Tìm kiếm sản phẩm đấu giá</span>
        <span id="label">Tên sản phẩm: </span>
        <span id="value" style="width:auto; float:left;"><asp:TextBox runat="server" ID="txtTenSanPham"></asp:TextBox></span>
        <span id="value" style="width:auto; float:right;"> 
            <asp:Button id="btToggle" OnClick="Toogle" Text="Tìm kiếm nâng cao" runat="server"/>
        </span>
    
        <asp:Panel ID="panelAdvanceSearch" Visible="false" runat="server">
            <br /> <br />
            <span id="label">Loại sản phẩm</span>
            <span id="value">
                <asp:DropDownList ID="DropDownListLoaiSanPham" runat="server" AppendDataBoundItems="true">
                    <asp:ListItem Value="-1" Text="---"></asp:ListItem>
                </asp:DropDownList>
            </span>
            <span id="label">Giá từ</span>
            <span id="value"><asp:TextBox ID="txtGiaTu" runat="server"></asp:TextBox></span>
            <span id="label">Giá đến</span>
            <span id="value"><asp:TextBox ID="txtGiaDen" runat="server" ></asp:TextBox></span>
            
            <span id="label">Đăng từ ngày</span> 
            <span id="value" style="float:left; width:auto;"><asp:TextBox ID="txtNgayDang1" runat="server" ReadOnly="true"></asp:TextBox></span>
            <span id="Span2" style="float:left; width:auto;"><asp:Button ID="Button1" runat="server" OnClick="ShowCalNgayDang1" Text="..."/></span>
            
            <span id="label" style="width:auto;"> đến ngày </span> 
            <span id="value" style="float:left; width:auto;"><asp:TextBox ID="txtNgayDang2" runat="server" ReadOnly="true"></asp:TextBox></span>
            <span id="Span5" style="float:none; width:auto;"><asp:Button ID="Button2" runat="server" OnClick="ShowCalNgayDang2" Text="..."/></span>
                        
                        
            <span id="label">Hết hạn từ ngày</span>
            <span id="value" style="float:left; width:auto;"><asp:TextBox ID="txtNgayHetHan1" runat="server" ReadOnly="true"></asp:TextBox></span>
            <span id="Span1" style="float:left; width:auto;"><asp:Button ID="Button6" runat="server" OnClick="ShowCalHetHan1"  Text="..."/></span>
            
            <span id="label" style="width:auto;"> đến ngày </span> 
            <span id="value" style="float:left; width:auto;"><asp:TextBox ID="txtNgayHetHan2" runat="server" ReadOnly="true"></asp:TextBox></span>
            <span id="Span6" style="float:none; width:auto;"><asp:Button ID="Button3" runat="server" OnClick="ShowCalHetHan2" Text="..."/></span>
            
            <span id="hdsioa" style="float:none; margin-left:157px;">
                <asp:Calendar ID="calendarSearch" runat="server" Visible="false" OnSelectionChanged="CalendarSelection"></asp:Calendar>
            </span>
            <asp:Label ID="lbTxtFlag" runat="server" Visible="false" Text=""></asp:Label>
            <span id="label">.</span>
        </asp:Panel>
        
        <span id="value" style="width:100px;"><asp:Button id="btSearch" runat="server" OnClick="BasicSearch" Text="Tìm kiếm"/></span>
        <span id="value" style="width:auto;"><asp:Button id="Button4" runat="server" OnClick="ResetSearchForm" Text="Xóa"/></span>
        
        <asp:Label id="lbnd1" Visible="false" runat="server"></asp:Label>
        <asp:Label id="lbnd2" Visible="false" runat="server"></asp:Label>
        <asp:Label id="lbnhh1" Visible="false" runat="server"></asp:Label>
        <asp:Label id="lbnhh2" Visible="false" runat="server"></asp:Label>
        
        <div class="vide"></div>
    
    </div>
</asp:Panel>

<asp:Panel ID="panelSanPham" runat="server" Visible="false">
    <div class="Windows">
        <span id="capture">Kết quả tìm kiếm</span>
        
        <span style="font-size:20; color:Red; text-align:center" >
            <asp:Label ID="lbStatus" runat="server" Text=""></asp:Label>
        </span>
            
        <asp:Repeater ID="rptProducts" runat="server">    
        <ItemTemplate>        
            <div class="auction padding0">
                <div class="producName">
                    <a class="blue" title="Phiên đấu giá không giới hạn BID" href="/dau-gia-sieu-re-truc-tuyen/ve-vua-dau-gia/ve-thuong-dan-21064.html">
                        <%#Eval("TenSanPham")%></a>
                </div>
                <div class="producPic">
                    <a href='<%# Eval("MaSanPham", "Detail.aspx?MSP={0}") %>'>
                        <img src="./productImgs/<%#Eval("MaTaiKhoan")%>/<%#Eval("HinhAnh")%>" alt="hinh anh san pham" />
                    </a>
                </div>
                <span class="countdown">
                    <%--<label>Đã kết thúc</label>
                    <span>
                       Thứ ba 24-05-2011 | 14:53:58
                    </span> --%>
                    <label>Ngày hết hạn</label>
                    <span><%#Eval("NgayHetHan")%></span>
                </span>
                <span class="price green"><%#Eval("GiaHienTai")%><span class="vnd">₫</span></span> 
                <span class="bidder"><a name="#"><img title="Thành viên THƯƠNG GIA" class="tooltip rank3" src="/templates/default/img/space.gif">chi6 </a></span>
                &nbsp;&nbsp;&nbsp;&nbsp;<span class="bidButton"><a href="javascript:" class="sold">BID</a></span>
                <div class="sktType">
                    <span class="icon tooltip" title="Giới hạn các cấp thành viên tham gia phiên đấu giá này">
                    </span>
                </div>
            </div>  
        </ItemTemplate>
        </asp:Repeater>
        <div class="vide"></div>
    </div>
</asp:Panel>



</asp:Content>

